package yxy.cherry.battle.module.affix.condition;

import yxy.cherry.battle.Fighter;

@AffixconditionType(Type = 11)
public class AffixCondition_11_目标血量低于数值 extends AffixCondition {

	public AffixCondition_11_目标血量低于数值(int param) {
		super(param);
	}

	@Override
	public boolean checkOne(Fighter actor) {
		return true;
	}

	@Override
	public boolean check(Fighter actor, Fighter target) {
		return target.get血量() <= getParam();
	}

	@Override
	public String toString() {
		return String.format("当目标的血量低于%s时", getParam());
	}
}
